package com.demo.service;

import java.util.Date;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.demo.entity.User;

public interface UserService {
	public User save(User user);
	public void delete(Long id);
	public List<User> findAll();
	public User findById(Long id);
	public User findByUsername(String username);
	public List<User> findByBirthBetween(Date birth, Date birth2);
	public Page<User> findByUsernameLike(String username, Pageable pageable);
	public Page<User> search(Pageable pageable, User user);
}